package pers.cz.mybatisPlugin;

import org.apache.ibatis.session.RowBounds;

import java.io.Serializable;

/**
 * 自定义分页插件
 * 总体思想：先获取总记录数
 * @program: PostGirl-panent
 * @description: PageRowBounds
 * @author: Cheng Zhi
 * @create: 2021-03-12 17:53
 **/
public class PageRowBounds extends RowBounds implements Serializable {

    private Long total;

    public PageRowBounds(int offset, int limit) {
        super(offset, limit);
    }

    public PageRowBounds() {
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
